Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Build Script Constraint #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timothyao
Copy link

Remove buildscript constraint to allow the plugin work with future version

Remove buildscript constraint to allow the plugin work with future version
@moazelsawaf
Copy link

The removal of the Kotlin Version will not help bypassing the build constraints, the build will fail trying to find the Kotlin Version like the following:

Launching lib/main.dart on sdk gphone64 arm64 in debug mode...

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file '/Users/moazelsawaf/.pub-cache/git/platform_device_id-b3f425e079ee735b06fb826e5735c0025e4ba8c1/platform_device_id/android/build.gradle' line: 12

* What went wrong:
A problem occurred evaluating project ':platform_device_id'.
> Could not get unknown property 'kotlin_version' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':platform_device_id'.
> Failed to notify project evaluation listener.
   > Could not get unknown property 'android' for project ':platform_device_id' of type org.gradle.api.Project.
   > Could not find method implementation() for arguments [project ':device_info'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
   > Could not get unknown property 'android' for project ':platform_device_id' of type org.gradle.api.Project.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
Error: Gradle task assembleDebug failed with exit code 1


Exited (1).

@timothyao
Copy link
Author

@moazelsawaf We all know this is not the ideal solution. It is a temporary solution that worked for me and allowed me to complete my project with minimal changes to the codebase, while we wait for the author.

If you are able to resolve the problem, using a more elegant approach, please share with the community.

Best Reagrds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants